#@layout()
<script>
	$("#fairsalary-charge").validate({
		rules : {},
		messages : {},
		onkeyup : false,
		focusCleanup : true,
		success : "valid",
		submitHandler : function(form) {
			var config = {
				"url" : "/admin/fairsalary/doCharge",
				data : $("#fairsalary-charge").serialize(),
				"method" : "POST"
			};
			var backendTool = new BackendTool(config);
			backendTool.ajaxRequest();
		}
	});
</script>
#define main()
<form class="form form-horizontal" id="fairsalary-charge">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span
			class="c-red">*</span>用户帐号：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text"
				value="#(fairSalary.company_name??'')" maxlength="50" readonly="readonly"
				placeholder="请输入充值用户id..." id="company_name" name="company_name">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span
			class="c-red">*</span>账户余额信息(单位:元)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text"
				value="#(fairSalary.fee()??'')" maxlength="50" readonly="readonly"
				placeholder="请输入账户余额信息..." id="salary">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span
			class="c-red">*</span>扣款金额(单位:元)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text"
				maxlength="50" 
				placeholder="请输入扣款金额..." id="salary" name="fee">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span
			class="c-red">*</span>扣款理由：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text"
				 maxlength="50"
				placeholder="请用一句话说明扣款理由" id="salary" name="reason">
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input type="hidden" value="#(fairSalary.id??'')" id="id"
				name="id"> <input class="btn btn-primary radius"
				type="submit" value="  提交  ">
		</div>
	</div>
</form>
#end
